import 'package:azlistview/azlistview.dart';
import 'package:flutter_deer/generated/json/base/json_field.dart';
import 'package:flutter_deer/generated/json/play_entity.g.dart';

@JsonSerializable()
class PlayItems with ISuspensionBean {

	PlayItems({this.id,this.name,this.footballTeamOneName,this.footballTeamOneImage,this.footballTeamTwoName,this.footballTeamTwoImage,this.playTime});

	factory PlayItems.fromJson(Map<String, dynamic> json) => $PlayItemsFromJson(json);

	Map<String, dynamic> toJson() => $PlayItemsToJson(this);

	int? id;
  String? name;
  String? footballTeamOneName;
  String? footballTeamOneImage;
  String? footballTeamTwoName;
  String? footballTeamTwoImage;
  String? playTime;

  @override
  String getSuspensionTag() {
		return name ?? '';
  }
}

@JsonSerializable()
class PlayRatioItems with ISuspensionBean {

  PlayRatioItems({this.id,this.playId,this.score,this.odds});

  factory PlayRatioItems.fromJson(Map<String, dynamic> json) => $PlayRatioItemsFromJson(json);

	Map<String, dynamic> toJson() => $PlayRatioItemsToJson(this);
	int? id;
  int? playId;
  String? score;
  String? odds;

  @override
  String getSuspensionTag() {
		return score ?? '';
  }
}